<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http:www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<include file="./Home/Tpl/Admin/Common/cssjs.html" />
</head>
<body>
<style type="text/css">
	html{_overflow-y:scroll}
</style>
<div class="pad-10">
  <div class="explain-col"> 最好是有选择性的刷新，如果全部刷新，当信息量比较大的时候生成会比较久！ </div>
  <div class="bk10"></div>
  <div class="table-list">
    <table width="100%" cellspacing="0">
      <form action="{:U("Contents/Create_html/update_show")}" method="post" name="myform">
        <input type="hidden" name="dosubmit" value="1">
        <input type="hidden" name="type" value="lastinput">
        <thead>
          <tr>
            <th align="center" width="150">按照模型更新</th>
            <th align="center" width="386">选择栏目范围</th>
            <th align="center">选择操作内容</th>
          </tr>
        </thead>
        <tbody  height="200" class="nHover td-line">
          <tr>
            <td align="center" rowspan="6"><?php
            foreach($models as $_k=>$_v) {
				$model_datas[$_v['modelid']] = $_v['name'];
			}
			echo Form::select($model_datas,$modelid,'name="modelid" size="2" style="height:200px;width:130px;" onclick="change_model(this.value)"','不限制模型');
            ?></td>
          </tr>
          <tr>
            <td align="center" rowspan="6"><select name='catids[]' id='catids'  multiple="multiple"  style="height:200px;" title="按住“Ctrl”或“Shift”键可以多选，按住“Ctrl”可取消选择">
                <option value='0' selected>不限栏目</option>
                
                  {$string}
              
              </select></td>
            <td><font color="red">每轮更新
              <input type="text" name="pagesize" value="10" size="4">
              条信息</font></td>
          </tr>
          <tr>
            <td>更新所有信息
              <input type="button" name="dosubmit1" value=" 开始更新 " class="button" onclick="myform.type.value='all';myform.submit();"></td>
          </tr>
          <if condition=" $modelid ">
          <tr>
            <td>更新最新发布的
              <input type="text" name="number" value="100" size="5">
              条信息
              <input type="button" class="button" name="dosubmit2" value=" 开始更新 " onclick="myform.type.value='lastinput';myform.submit();"></td>
          </tr>
          <tr>
            <td>更新发布时间从
              <link rel="stylesheet" type="text/css" href="{$Config.siteurl}statics/js/calendar/jscal2.css"/>
              <link rel="stylesheet" type="text/css" href="{$Config.siteurl}statics/js/calendar/border-radius.css"/>
              <link rel="stylesheet" type="text/css" href="{$Config.siteurl}statics/js/calendar/win2k.css"/>
              <script type="text/javascript" src="{$Config.siteurl}statics/js/calendar/calendar.js"></script> 
              <script type="text/javascript" src="{$Config.siteurl}statics/js/calendar/lang/en.js"></script>
              <input type="text" name="fromdate" id="fromdate" value="" size="10" class="date" readonly>
              &nbsp;<script type="text/javascript">
			Calendar.setup({
			weekNumbers: true,
		    inputField : "fromdate",
		    trigger    : "fromdate",
		    dateFormat: "%Y-%m-%d",
		    showTime: false,
		    minuteStep: 1,
		    onSelect   : function() {this.hide();}
			});
        </script> 到
              <input type="text" name="todate" id="todate" value="" size="10" class="date" readonly>
              &nbsp;<script type="text/javascript">
			Calendar.setup({
			weekNumbers: true,
		    inputField : "todate",
		    trigger    : "todate",
		    dateFormat: "%Y-%m-%d",
		    showTime: false,
		    minuteStep: 1,
		    onSelect   : function() {this.hide();}
			});
        </script>的信息
              <input type="button" name="dosubmit3" value=" 开始更新 " class="button" onclick="myform.type.value='date';myform.submit();"></td>
          </tr>
          <tr>
            <td>更新ID从
              <input type="text" name="fromid" value="0" size="8">
              到
              <input type="text" name="toid" size="8">
              的信息
              <input type="button" class="button" name="dosubmit4" value=" 开始更新 " onclick="myform.type.value='id';myform.submit();"></td>
          </tr>
          </if>
        </tbody>
      </form>
    </table>
  </div>
</div>
<script language="JavaScript">
<!--
	window.top.$('#display_center_id').css('display','none');
	function change_model(modelid) {
		window.location.href='?a=update_show&m=Create_html&g=Contents&modelid='+modelid;
	}
//-->
</script>
</body>
</html>